<?php

$event = $module->event;
$title = $module->class;
// date can be a string or an array of 2 strings for start and end dates
$date = $module->date;
$notes = $module->notes;

?>

<?php if($event): ?>
<p><strong><?= $title ?></strong><br>
<?php if(is_array($module->dates)): ?>
<time><?= NRHCdate($module->dates[0]) ?></time>&ndash;<time><?= NRHCdate($module->dates[1]) ?></time>
<?php else: ?>
<time><?= NRHCdate($module->dates) ?></time>
<?php endif ?>
<?php if(!empty($notes)): ?>
<br><?= $notes ?>
<?php endif ?>
</p>
<?php else: ?>
<p><em>The next class date has not been scheduled. Please check back soon for the next class.</em></p>
<?php endif ?>
